#include "../include/threadpool.h"

int epoll_add_event(int epfd,int fd)
{
    struct epoll_event ev;
    ev.data.fd=fd;
    ev.events=EPOLLIN;

    epoll_ctl(epfd,EPOLL_CTL_ADD,fd,&ev);
    return 0;
}

int epoll_del_event(int epfd,int fd)
{
    struct epoll_event ev;
    ev.data.fd=fd;
    ev.events=EPOLLIN;

    epoll_ctl(epfd,EPOLL_CTL_DEL,fd,&ev);
    return 0;
}